package cn.dlc.com;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.data.mongo.MongoDataAutoConfiguration;
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ComponentScans;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

/**
 * @author 邓立川
 * @date 2021/1/15 21:19
 * @desc 当前类的描述信息
 */
// 禁用MongoDB的启动配置
@SpringBootApplication(exclude = {MongoAutoConfiguration.class, MongoDataAutoConfiguration.class})
@EnableDiscoveryClient
@EnableFeignClients
// 注意这个扫描的地方，
@ComponentScan({"cn.dlc.com","org.dromara.hmily"})
// 这个默认值是false，貌似要设置为true,这个加不加无所谓
@EnableAspectJAutoProxy(proxyTargetClass = true)
public class TccBank1ServerApplication {
    public static void main(String[] args) {
        SpringApplication.run(TccBank1ServerApplication.class,args);
    }
}
